﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace DAL
{
    public class BaseUser : System.Web.UI.Page
    {
        public BaseUser()
        {
            this.Load += new EventHandler(BasePage_Load);
        }

        public void BasePage_Load(object sender, EventArgs e)
        {
            if (B.MyUser == null)
            {
                string returnUrl = string.Format("/login.aspx");
                Response.Write("<script>window.top.location.href='" + returnUrl + "'</script>");
                Response.End();
            }

        }
    }
}
